package acm2;

import java.util.*;class Main{static{Scanner s=new Scanner(System.in);for(s.next();s!=null;System.out.println((int)Math.sqrt(s.nextInt())));}}